package com.jthinker.service;

import com.jthinker.bean.vo.QueryResult;
import com.jthinker.bean.vo.SearchFilter;

import java.util.List;
import java.util.Map;

/**
 * Created by chen.gang on 15-2-16.
 */
public interface ResourceService
{
    Map<String, Object> findOne(Long resourceId);

    List<Map<String, Object>> findAll();

    QueryResult<Map<String, Object>> query(SearchFilter filter);

    void create(Map<String, Object> record) throws Exception;
}
